package gui.factory;

import iface.ChartInfo;
import gui.SimpleBarChart;

/**
 * This class contains factory methods to create charts.
 * 
 * @author Marcus Lindner
 * @author Joana Otetelisanu
 */
public enum ChartFactory {
    ;

    /**
     * @return a {@link SimpleBarChart} with standard information.
     */
    public static SimpleBarChart getBarChart() {
	final double[] val = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 };
	final String[] lang = { "1", "2", "3", "4", "5", "6" };
	String t = "Probability Chart";

	return new SimpleBarChart(new ChartInfo() {

	    @Override
	    public double[] getValues() {
		return val;
	    }

	    @Override
	    public String[] getNames() {
		return lang;
	    }
	}, t);
    }
}
